<?php

namespace App\Http\Controllers\Test;

use App\Http\Controllers\Controller;
use App\Service\WeiSendAuto;


class MpweixinController extends Controller
{
    // 组件测试
    // 在美新社中才有测试
    public function initialize()
    {
        parent::initialize();
    }

    // 测试
    public function test()
    {
        $arr = array(
            'account'  => 'm18113069917@163.com',
            'password' => '3baa5f30feeb5dc9c7f5f2e0abff0eb4',
            'key'      => "tmall",
        );
        $w   = new WeiSendAuto();
        $w->init($arr);
        if(!$w->getToken()){
            die("NOT TOKEN!");
        }

    }

}


